package com.pentakill.mo.essay.essay.vo;

import java.util.HashMap;
import java.util.Map;

import org.quartz.impl.calendar.CronCalendar;

import com.pentakill.mo.essay.category.vo.CategoryModel;
import com.pentakill.mo.util.format.FormatUtil;

import jxl.biff.drawing.MsoDrawingGroupRecord;

/**
 * 文章实体类
 * @author xing
 *
 */
public class EssayModel {
	
	
	//删除状态
	public static final int STATUS_DELETE = 1;
	//审核状态
	public static final int STATUS_AUDITING = 2;
	//通过状态
	public static final int STATUS_PASS = 3;
	//未通过状态
	public static final int STATUS_NO_PASS = 4;
	
	
	public static final Map<Integer, String> staticMap = new HashMap<Integer, String>() ;
	static{
		staticMap.put(1,"删除");
		staticMap.put(2,"审核");
		staticMap.put(3,"通过");
		staticMap.put(4,"未通过");
	}
	
	
	private Integer uuid;
	//创建时间
	private long createDate;
	private String createDateView;
	//标题
	private String title;
	//内容
	private String content;
	
	//状态
	private Integer status;
	
	
	private String url;
	
	
	
	
	//相对应类别
	private CategoryModel category;
	
	
	
	public String getCreateDateView() {
		return createDateView;
	}
	public int getStatus() {
		return status;
	}
	public void setStatus(int status) {
		this.status = status;
	}
	public CategoryModel getCategory() {
		return category;
	}
	public void setCategory(CategoryModel category) {
		this.category = category;
	}
	public Integer getUuid() {
		return uuid;
	}
	public void setUuid(Integer uuid) {
		this.uuid = uuid;
	}
	public long getCreateDate() {
		return createDate;
	}
	public void setCreateDate(long createDate) {
		this.createDate = createDate;
		this.createDateView = FormatUtil.formatDate(createDate);
	}
	public String getTitle() {
		return title;
	}
	public void setTitle(String title) {
		this.title = title;
	}
	public String getUrl() {
		return url;
	}
	public void setUrl(String url) {
		this.url = url;
	}
	public String getContent() {
		return content;
	}
	public void setContent(String content) {
		this.content = content;
	}
	
	
}
